package com.example.ujsfish.model;

import com.example.ujsfish.model.poolMap.PoolPoint;

import java.util.ArrayList;

public class PoolPointListSingle {
    private ArrayList<PoolPoint> poolPointList;
    private volatile static PoolPointListSingle poolPointListSingle = null;
    private PoolPointListSingle(){

    }

    public ArrayList<PoolPoint> getPoolPointList(){
        return poolPointList;
    }

    public static PoolPointListSingle getInstance(){
        if (poolPointListSingle == null){
            synchronized (Coordinate.class){
                poolPointListSingle = new PoolPointListSingle();
            }
        }
        return poolPointListSingle;
    }


}
